﻿#cuerpo {
    background-color: white;
    margin-top:5px;
    margin-bottom:5px;
}

/* ==== CONTROLES DE LOS CARRUSELES ==== */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity 0.1s ease;
    z-index: 2; /* Para estar sobre las imágenes */
    position: absolute;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover, 
    .carousel-control-prev:focus,
    .carousel-control-next:focus {
        opacity: 1;
        background-color: rgba(85, 156, 82, 0.5); /* 0.5 = 50% opacidad */
    }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); /* Icono oscuro sobre fondo blanco */
    width: 20px;
    height: 20px;
}


/* ==== CARRUSEL PRINCIPAL ==== */
.texto-overlay {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background-color: rgba(85, 156, 82, 0.70);
    padding: 10px;
    border-radius: 5px;
    max-width: 90%;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    z-index: 2; /* Encima de la imagen, pero debajo del menú */
}

.carousel-item {
    z-index: 1; /* Debajo del menú */
    position: relative;
    border: 3px solid #bb4b26;
}




#heroCarousel {
    position: relative;
    z-index: 0 !important; /* << CORRECCIÓN CLAVE */
}

.carrusel-img {
    width: 100%; /* ocupa todo el ancho del carrusel */
    height: 470px; /* alto fijo en desktop */
    object-fit: cover; /* recorta proporcionalmente */
}

@media (max-width: 758px) {
    .carrusel-img {
        width: 100%; /* ocupa todo el ancho del carrusel */
        height: 195px !important; /* más bajo en móviles */
        object-fit: cover; /* recorta proporcionalmente */
    }
}

@media (max-width: 850px) {
    .carrusel-img {
        width: 100%; /* ocupa todo el ancho del carrusel */
        height:300px !important; /* menos alto en móviles */
        object-fit: cover; /* recorta proporcionalmente */
    }
}

@media (max-width: 1250px) {
    .carrusel-img {
        width: 100%; /* ocupa todo el ancho del carrusel */
        height: 350px !important; /* menos alto en móviles */
        object-fit: cover; /* recorta proporcionalmente */
    }
}

    /*ENLACES*/
.bloques-iconos {
    width: 200px; /* ancho fijo más pequeño */
    aspect-ratio: 1 / 1; /* mantiene forma cuadrada */
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0 auto; /* centra el cuadro dentro de la columna */
    border: 1px solid #CACCCA; /* grosor 2px, línea sólida, color rojo */
    border-radius: 8px; /* opcional: esquinas redondeadas */
}

.img-100 {
    max-width: 80%; /* Que no ocupe todo el cuadro */
    max-height: 80%; /* Mantiene proporción */
    object-fit: contain; /* Ajusta sin deformar */
}

.btn.img {
    display: block;
    background-color: #fff;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    text-align: center;
}


/* NOTICIAS*/
#home-noticias{
    height:510px;
}

#media {
    display: block; /* Que ocupe todo el ancho posible */
    color: inherit; /* Color texto por defecto */
    text-decoration: none; /* Sin subrayado */
    background-color: transparent;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    transition: all 0.3s ease;
    height: 52px; /* Fija la altura deseada */
    width: 100%;
    overflow: hidden; /* Oculta el contenido que excede */
    text-overflow: ellipsis; /* Agrega "..." al final si se corta */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Número máximo de líneas */
    -webkit-box-orient: vertical;
}

    #media:hover {
        background-color: rgba(85, 156, 82, 0.2); /* Fondo verde */
        color: #559C52 !important; /* Texto verde claro (ajusta como quieras) */
        border-left-color: #559C52 !important; /* Franja verde oscura izquierda */
        border-right-color: #559C52 !important; /* Franja verde oscura derecha */
    }

        #media:hover h5 {
            color: #559C52 !important;
        }


/*REDES*/
#tab1 {
    background-color: #fff;
    border-style: solid;
    border-width: 4px;
    border-color: #bb4b26;
    cursor: pointer;
}

#twitter, #facebook, #instagram, #youtube {
    position: inherit;
    z-index: 1;
    padding: 3px;
    cursor: pointer;
    height:386px !important;
}

#navigation {
    margin-top: 9px;
    cursor: pointer;
}

#Afacebook, #Atwitter, #Ainsta, #Ayoutube {
    border-radius: 9px 9px 0 0;
    -moz-border-radius: 9px 9px 0 0;
    -webkit-border-radius: 9px 9px 0 0;
    font-size: 15px;
}

.seleccion {
    height: 27px;
    background-color: #bb4b26;
    color: #fff;
    list-style: none;
    cursor: pointer;
}

.center {
    text-align: center;
}

.oculta {
    overflow: hidden;
    display: none;
}

.seleccionada {
    display: block;
    overflow: hidden;
}


/* AVISOS*/
#home-avisos {
    height: 510px;
}

#heroCarousel2 {
    position: relative;
    z-index: 0 !important; /* << CORRECCIÓN CLAVE */
}

.imagen-item2,
.carousel-item2 {
    z-index: 1 !important;
    position: relative;
    border:none !important;
}

.carousel-item2 {
    height: auto !important; /* Altura fija del carrusel */
}

    .carousel-item2 img {
        height: 100%;
        object-fit: cover; /* Recorta para que no se deforme */
    }

#hero2 {
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    height: auto; /* Ocupa toda la pantalla */
}

#aviso12{
    width:311px;
}

#aviso14{
    width:298px;
}
.texto-sobre {
    position: absolute;
    top: 20px; /* distancia desde arriba */
    left: 20px; /* distancia desde la izquierda */
    color: white; /* color del texto */
    font-size: 7px;
    background: rgba(210, 75, 26); /* fondo semitransparente opcional */
    padding: 5px 10px;
    border-radius: 8px;
    margin-top: 15rem;
    margin-left: 90px;
    white-space: pre-line;
    font-weight: bold;
}

/*Responsivo*/
@media (prefers-reduced-motion) {
    ul .cloud * {
        transition: none !important;
    }
}

@media only screen and (max-width: 500px) {
    .btn-lg {
        font-size: 10px;
    }

    .texto-overlay {
        font-size: 8px; /* Tamaño de fuente aún más pequeño para móviles pequeños */
        padding: 5px; /* Padding más reducido */
    }
}

@media screen and (max-width: 768px) {
    h3 {
        font-size: 20px !important;
    }

    .texto-overlay {
        font-size: 9px; /* Tamaño de fuente más pequeño para tablets y móviles */
        padding: 5px; /* Padding reducido */
    }
}

@media screen and (max-width: 991px) {
    .texto-overlay {
        font-size: 10px; /* Tamaño de fuente más pequeño para tablets y móviles */
        padding: 5px; /* Padding reducido */
    }
}


@media (min-width: 200px) and (max-width: 1500px) {
    .carousel-item {
        height: auto !important; /* Altura fija del carrusel */
    }
}

#banner{
    width:318px;
}

.d-block {
    text-decoration: #bb4b26 !important; /* quita subrayado */
}


.card-oferta {
    display: inline-block;
}

.OA {
    display: block;
    width: 100%;
    height: auto;
}
.OA {
    transition: all 0.3s ease; /* suaviza el efecto */
}

    .OA:hover {
        filter: brightness(1.1); /* 1 = normal, 1.3 = más brillo */
    }


.titulo-card {
    background-color: #bb4b26;
    color: white;
    font-weight: bold;
    text-align: center; /* centra horizontalmente */
    display: flex; /* activa flexbox */
    justify-content: center; /* centra horizontalmente */
    align-items: center; /* centra verticalmente */
    padding: 0; /* opcional, el padding puede interferir */
    min-width: 190px;
    height: 95px;
}





@media (min-width: 1000px) and (max-width: 1050px) {
    .OA {
        width: 203px;
    }
}



.galeria-fila {
    display: flex;
    gap: 5px; /* espacio entre imágenes */
}
.galeria-fila img {
    object-fit: cover;
    display: block;
}

/* Tus tamaños originales */
.img1 {
    width: 16rem;
    height:7rem;
}

.img2 {
    width: 237px;
}

.img3 {
    width: 237px;
    margin-top: 5px;
}

.img4 {
    width: 255px;
    margin-top: 5px;
}


.img6 {
    width: 16rem;
    margin-top: 5px;
}

.img7 {
    width: 236px;
    margin-top: 5px;
}


/* En pantallas pequeñas: todo en columna */
@media (max-width: 768px) {
    .galeria-fila {
        display: block; /* rompe el flex */
    }

        .galeria-fila img {
            width: 100% !important; /* cada imagen ocupa toda la pantalla */
            margin-top: 10px;
        }
}

#home-galeria {
    height: 510px;
}



.tamaño{
    width:31rem;
}